package com.promonkey.biz.impl;

import com.promonkey.biz.BabySitter;

/**
 * Created by promonkey on 2017/2/22.
 */
public class BabySitterImpl implements BabySitter {

    private String name;//保姆姓名

    private static BabySitter babySitter;

    public BabySitterImpl(String name) {
        this.name = name;
    }

    public String childmind() {
        return this.name + " 照看小孩！";
    }

    public String sweep() {
        return this.name + " 打扫卫生！";
    }

    public String cook() {
        return this.name + " 下厨做饭！";
    }

    public static BabySitter getBabySitter(){
        if (babySitter == null) {
            babySitter = new BabySitterImpl("李婶");
        }
        return babySitter;
    }
}
